package cn.bugstack.domain.activity.service.discount;

import cn.bugstack.domain.activity.model.valobj.GroupBuyActivityDiscountVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service("N")
@Slf4j
public class NCalculateService  extends AbstractDiscountCalculateService{


    @Override
    protected BigDecimal doCalculate(BigDecimal originalPrice, GroupBuyActivityDiscountVO.GroupBuyDisCount groupBuyDisCount) {

        String marketExpr = groupBuyDisCount.getMarketExpr();

        return new BigDecimal(marketExpr);
    }
}
